import { request } from "umi"
interface Iparams {
    id: number,
    disabled: boolean,
}
//获取用户列表接口
export let getUserList = (params: any) => {
    return request("admin/users", params)
}
//是否禁用用户接口
//是否禁用用户接口

export let isDisabled = (params: Iparams) => {
    let { id, disabled } = params
    return request(`admin/users/${id}`, {
        method: "PATCH",
        disabled
    })
}